import { createDeflate } from "zlib";

let actions = {
    addCart(store,data){
        console.log('addCart');
        // console.log(context);
        console.log(data);
        store.commit('addCart',data);
    },
    cartDel(store,data){
        let arr = store.state.cartList.filter((item)=>{
            console.log(item);
            if(item.id != data){
                return true;
            }
        })
        store.commit("delCart",arr);
    }
}
export default actions